package com.evil.application.pojo.dto.view.config.filter;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

/**
 * 筛选视图-条件组
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class FilterGroupDTO {

    /**
     * 筛选组id
     */
    private Long filterGroupId;

    /**
     * 筛选组名
     */
    @NotBlank(message = "筛选视图 筛选组名不能为空")
    private String filterGroupName;

    /**
     * 筛选组配置
     */
    private List<FilterGroupConfigDTO> filterGroupConfig;

    public FilterGroupDTO() {
        this.filterGroupConfig = new ArrayList<>();
    }
}
